package com.jieyang.oa.dao;

import com.jieyang.oa.pojo.Vo.IncomeListVo;
import com.jieyang.oa.pojo.entity.Income;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IncomeDao {

    Integer insert(Income income);

    List<Income> selectIncomeTypeList();

    List<IncomeListVo> selectAll(@Param("startDate") String startDate,
                                 @Param("endDate") String endDate,
                                 @Param("incomeType") String incomeType);

    Integer count(@Param("startDate") String startDate,
                                 @Param("endDate") String endDate,
                                 @Param("incomeType") String incomeType);

    Integer delete(Long incomeId);

    IncomeListVo selectByIncomeId(Long incomeId);
}
